package com.chenjl.exchange;
/**
 * 
 * 2016-9-6 02:30:37
 * @author chenjinlong
 */
public class Response implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	//和Request ID保持一致
	private final Long id;
	private Object data;
	
	public Response(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return id;
	}

	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
	@Override
	public String toString() {
		return "[id : "+id+" , data : "+data+"]";
	}
}